package com.example.yoga.service;

import com.example.yoga.entity.MonthMoney;
import com.example.yoga.entity.PayRecord;
import com.example.yoga.entity.PaymentVo;
import com.example.yoga.entity.VipCardVo;
import com.example.yoga.mapper.PayRecordMapper;
import com.example.yoga.mapper.UserMapper;
import com.example.yoga.service.IPayRecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author liwenkai
 * @since 2021-03-11
 */
@Service
public class PayRecordServiceImpl extends ServiceImpl<PayRecordMapper, PayRecord> implements IPayRecordService {

    @Resource
    private PayRecordMapper payRecordMapper;

    @Override
    public List<PaymentVo> getPayList() {
        List<PaymentVo> payList = payRecordMapper.getPayList();
        return payList;
    }

    @Override
    public List<PaymentVo> getPayListByName(String name) {
        List<PaymentVo> payListByName = payRecordMapper.getPayListByName(name);
        return payListByName;
    }

    @Override
    public  List<MonthMoney> getMoneyByMonth() {
        List<MonthMoney> moneyByMonth = payRecordMapper.getMoneyByMonth();
        return moneyByMonth;
    }

//    @Override
//    public List<VipCardVo> getAllVipCardList() {
//        List<VipCardVo> allVipCardList = userMapper.getAllVipCardList();
//        return allVipCardList;
//    }
}
